<%--
  Created by IntelliJ IDEA.
  User: 骆鹏
  Date: 2017/7/27
  Time: 11:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>

<html>
<head>
    <title>待办指派</title>
    <style>
        table{
            margin-top: 80px;
        }
        .last_str{
            display: none;
        }
    </style>
    <meta name="viewport" content="width=device-width, initial-scale=0.3, user-scalable=0, minimum-scale=0, maximum-scale=5.0,user-scalable=yes">
    <link rel="stylesheet" href="/css/officialDocument/officialDocument.css">
    <link rel="stylesheet" href="/lib/layer/skin/default/layer.css">
    <link rel="stylesheet" href="/lib/laydate/need/laydate.css">
    <link rel="stylesheet" href="/lib/pagination/style/pagination.css">
    <link rel="stylesheet" href="/css/base.css">
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/lib/layer/layer.js?20201106"></script>
    <script src="/js/base/base.js"></script>
    <script src="/lib/laydate/laydate.js"></script>
    <script src="/lib/pagination/js/jquery.pagination.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/street/base/tablePage.js"></script>
</head>

<body>
<div class="headTop">
    <div class="headImg">
        <img src="/img/document/icon_myDispatch.png" alt="">
    </div>
    <div class="divTitle">
        待办指派
    </div>
</div>



<div id="divoo">

</div>
<div style="margin: 0 auto;margin-top: 10px;height: 60px;width: 97%;" class="clearfix">
    <div id="dbgz_page" class="M-box3 fr" style="display: none">

    </div>
</div>
<script>
    var arr=[
        {
            title:'序号',
            name:''
        },
        {
            title:'事件描述',
            name:'eventInfo'
        },
        {
            title:'事件类型',
            name:'codeName'
        },
        {
            title:'上报人',
            name:'createrName'
        },
        {
            title:'上报时间',
            name:'dateTime'
        },
        {
            title:'所属社区',
            name:'gridName'
        },
        {
            title:'流程状态',
            name:'prFlag',
            selectFun:function (type) {
                if(type==1){
                    return '<fmt:message code="lang.th.will"/>'
                }else {
                    return '<fmt:message code="lang.th.Process"/>'
                }
            }
        },
        {
            title:'流程步骤',
            name:'prcsName',
            selectFun:function (type,obj) {
                    return '第'+obj.step+'步：'+type
            }
        },
        {
            title:'操作',
            name:''
        }
    ]

    $(function () {
        function page(){
            var obj=$.tablePage('#divoo',arr,function (me) {
                me.init('/gridEventParting/selWillGridSendOrReceive',['办理'])
            });
        }
        page();

        $(document).on('click','.editAndDelete0',function () {
            var datas=JSON.parse($(this).attr('data-obj').replace(/'/g,'"'));
            window.open('/workflow/work/workform?flowId='+datas.flowId+'&prcsId='+datas.realPrcsId+'&flowStep='+datas.step
                +'&runId='+datas.rumId+'&tabId='+datas.eventId+'&tableName=grid_event&isNomalType=true&hidden=true')
        })

    })





</script>
</body>
</html>
